﻿using System.ComponentModel.DataAnnotations;

namespace IssueVision.Data.Web
{
    // The MetadataTypeAttribute identifies SecurityQuestionMetadata as the class
    // that carries additional metadata for the SecurityQuestion class.
    [MetadataTypeAttribute(typeof(SecurityQuestion.SecurityQuestionMetadata))]
    public partial class SecurityQuestion
    {

        // This class allows you to attach custom attributes to properties
        // of the SecurityQuestion class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class SecurityQuestionMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private SecurityQuestionMetadata()
            {
            }

            public string PasswordQuestion { get; set; }
        }
    }
}
